import java.util.Random;

public class Subtraction implements Operation
{
    private static final Random randomNumbers = new Random();
    private static final int MAX_OPERAND_VALUE = 100;
    private int minuend;
    private int subtrahend;

    public Subtraction()
    {
        minuend  = randomNumbers.nextInt(MAX_OPERAND_VALUE);
        subtrahend = randomNumbers.nextInt(minuend );
    }

    @Override
    public String toString()
    {
        return minuend + " - " + subtrahend + " = ";
    }
    
    @Override
    public String getResult()
    {
        return Integer.toString(minuend - subtrahend);
    }
}
